package dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionFactory 
{
	public static Connection createConnection()
	{
		String urlDeConexao = "jdbc:mysql://192.168.0.104:3306/kioskcar2";
		String user = "root";
		String pass = "danilobd";
		
		Connection conexao = null;
		
		try
		{
			Class.forName("com.mysql.jdbc.Driver");
			conexao = DriverManager.getConnection(urlDeConexao, user, pass);
		}
		catch(Exception err)
		{
			err.printStackTrace();
		}
		
		return conexao;
	}
}
